﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace ApiDay9_l.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class AreaController : ControllerBase, IAreaBll
    {
        public AreaController(IAreaBll bll)
        {
            Bll = bll;
        }

        public IAreaBll Bll { get; }

        /// <summary>
        /// 下拉框
        /// </summary>
        /// <returns>返回受影响行数</returns>
        [HttpGet("BindArea")]
        public IQueryable<Area> BindArea()
        {
            return Bll.BindArea();
        }


    }
}
